#ifndef WF_EDITUNDO_H
#define WF_EDITUNDO_H

#include "pf_actioninterface.h"
#include "pf_undo.h"
#include "gui_export.h"

/**
 * This action class can handle user events for undo / redo.
 *
 */
class GUI_EXPORT WF_EditUndo : public PF_ActionInterface {
	Q_OBJECT
public:
    WF_EditUndo(bool undo,
                      PF_Container& container,
                      PF_GraphicView& graphicView);
    ~WF_EditUndo();
	
	static QAction* createGUIAction(LX_Define::ActionType type, QObject* parent);

    virtual void init(int status=0);
    virtual void trigger();

protected:
    /** Undo (true) or redo (false) */
    bool undo;
};

#endif
